import {wx} from '../../../weixin2alipay/index.js';
import {Page,Component} from '../../../weixin2alipay/index.js';
Page({
    "onShareAppMessage"(){
      return {
        "title":'Audio',
        "path":'packageAPI/pages/audio/audio'
};
    },
    "onReady"(e){
      this.audioCtx = wx.createAudioContext('myAudio');
      this.audioCtx.setSrc('https://dldir1.qq.com/music/release/upload/t_mm_file_publish/2339610.m4a');
      this.audioCtx.play();
    },
    "data":{
        "src":''
},
    "audioPlay"(){
      this.audioCtx.play();
    },
    "audioPause"(){
      this.audioCtx.pause();
    },
    "audio14"(){
      this.audioCtx.seek(14);
    },
    "audioStart"(){
      this.audioCtx.seek(0);
    }
});

